package com.app.micaihu.bean.comment;


import android.text.TextUtils;

import com.app.micaihu.bean.speak.ICommentEntity;
import com.app.micaihu.configure.TypeConstant;
import com.app.micaihu.bean.speak.ILaud;

import java.util.List;

/**
 * Created by Guo on 2016/12/21.
 * <p>
 * 二级评论的网络接受类
 */

public class CommentSecondaryBean extends BaseComment implements ICommentEntity, ILaud {

    private List<String> articleThumb;

    private String articleTitle;

    private String headPic;

    private List<NormalComment> childList;

    private String articleType;

    private String isFans;

    private List<PariseBean> praiseList;

    private String praiseNum;

    private String publishTime;

    private String rankIcon;

    private String rankName;


    private String typeName;


    private String gameId;

    private String honourPic;//军团勋章
    private String armyGroupInfo;//所属军团 或 军团职位

    public String getHonourPic() {
        return honourPic;
    }

    public void setHonourPic(String honourPic) {
        this.honourPic = honourPic;
    }

    public String getArmyGroupInfo() {
        return armyGroupInfo;
    }

    public void setArmyGroupInfo(String armyGroupInfo) {
        this.armyGroupInfo = armyGroupInfo;
    }


    public String getGameId() {
        return gameId;
    }

    public void setGameId(String gameId) {
        this.gameId = gameId;
    }

    public String getTypeName() {
        if (TextUtils.isEmpty(typeName)) {
            typeName = TypeConstant.getNewsTypeName(articleType);
        }
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public List<String> getArticleThumb() {
        return articleThumb;
    }

    public void setArticleThumb(List<String> articleThumb) {
        this.articleThumb = articleThumb;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public List<NormalComment> getChildList() {
        return childList;
    }

    public void setChildList(List<NormalComment> childList) {
        this.childList = childList;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public String getIsFans() {
        return isFans;
    }

    public void setIsFans(String isFans) {
        this.isFans = isFans;
    }

    public List<PariseBean> getPraiseList() {
        return praiseList;
    }

    public void setPraiseList(List<PariseBean> praiseList) {
        this.praiseList = praiseList;
    }

    public String getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(String praiseNum) {
        this.praiseNum = praiseNum;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getRankIcon() {
        return rankIcon;
    }

    public void setRankIcon(String rankIcon) {
        this.rankIcon = rankIcon;
    }

    public String getRankName() {
        return rankName;
    }

    public void setRankName(String rankName) {
        this.rankName = rankName;
    }


    @Override
    public boolean getNewsOrTopic() {
        return false;
    }


    @Override
    public String getIContent() {
        return getContent();
    }

    @Override
    public String getIFile() {
        return null;
    }

    @Override
    public String getINickName() {
        return getNickName();
    }

    @Override
    public String getIHeadPic() {
        return getHeadPic();
    }

    @Override
    public String getIRankName() {
        return getRankName();
    }

    @Override
    public String getIRankIcon() {
        return getRankIcon();
    }

    @Override
    public String getIPublishTime() {
        return getPublishTime();
    }

    @Override
    public String getICommentTitle() {
        return getArticleTitle();
    }

    @Override
    public boolean getIIsFans() {
        return TextUtils.equals("1", getIsFans());
    }

    @Override
    public String getIChildNum() {
        return null;
    }

    @Override
    public List<ChildComment> getIChildList() {
        return null;
    }

    @Override
    public void setIChildList(List<ChildComment> childList) {

    }

    @Override
    public String getIHonourPic() {
        return getHonourPic();
    }

    @Override
    public String getIArmyGroupInfo() {
        return getArmyGroupInfo();
    }

    @Override
    public String getILaudOperateType() {
        return TypeConstant.ZAN_NORMAL;
    }

    @Override
    public String getILaudNum() {
        return getPraiseNum();
    }

    @Override
    public String getILaudType() {
        return TypeConstant.COMMENT_ONE;
    }

    @Override
    public void setILaudNum(String iLaudNum) {
        setPraiseNum(iLaudNum);

    }

    @Override
    public String getNewsId() {
        return getArticleId();
    }

    @Override
    public String getICommentId() {
        return getId();
    }

    @Override
    public String getIParentCmtId() {
        return "0";
    }

    @Override
    public String getIType() {
        return getType();
    }

    @Override
    public String getIToUid() {
        return getUid();
    }

    @Override
    public void setIToUid(String toUid) {

    }
}
